package com.atguigu.dao;

import com.atguigu.pojo.TravelGroup;
import com.atguigu.pojo.TravelItem;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TravelGroupDao {

    List<TravelItem> getGroupItem();

    void add(TravelGroup travelGroup);

    void addSetGroupItem(Map<String,Integer> map);

    Page<TravelGroup> get(@Param("value") String queryString);

    void delete(Integer id);

    int selectGroupItem(Integer id);

    TravelGroup selectGroupId(Integer id);

    List<Integer> findTravelItemIdByTravelgroupId(Integer id);

    void update(TravelGroup travelGroup);

    void deleteGroupItem(Integer id);

    List<TravelGroup> findTraveGroup(Integer id);

}
